<!--#include file=checkSession.inc-->
<%
view=request("view")

Set ClsFun=server.CreateObject("Vinalines.ClsFunction")
sSQL="Select mailbox, mailpassword  from canbo where username = '"& Session("Uname") &"'"
Set Rec=server.CreateObject("ADODB.Recordset")
Rec.CursorType=3
Rec.CacheSize=5
Rec.Open sSQL,Conn
if Rec.recordcount then
'		bpassword=ClsFun.Giaima(Rec("passmail"))
		Session("mailpass")=Rec("mailpassword")
		Session("mailbox")=Rec("mailbox")
end if
Rec.close
Set Rec=nothing
'buser=Session("Uname")
'buser="selab"
'bpassword="selab"
%>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function load()
{
	user=nhom.user.value;
	pass=nhom.pass.value;
	view=nhom.view.value;
	blink="GetMail.asp?view="+view+"&buser="+user+"&bpassword="+pass;
	window.nhom.action=blink;
	window.nhom.target="right";
	window.nhom.submit();	
}
//-->
</SCRIPT>
</head>
<body  topmargin="0" leftmargin="0" style="font-family:times new roman" onload="load()">
<form name="nhom" method="POST">
	<input type="hidden" name="user" value="<%=Session("mailbox")%>">
	<input type="hidden" name="pass" value="<%=Session("mailpass")%>">
	<input type="hidden" name="view" value="<%=view%>">
</body>
</form>
</html>